package com.cq.hd.task.web.job;

import com.cq.hd.member.api.TbBusinessEnterApplyApi;
import com.xxl.job.core.handler.annotation.XxlJob;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
@Slf4j
public class BusinessEnterTask {

    @Autowired
    private TbBusinessEnterApplyApi businessEnterApplyApi;

    /**
     * 系统定时检测商家是否签约成功和微信实名成功（签约和认证顺序不分先后）
     */
    // 每隔1h扫描一次 0 0 */1 * * ?
    @XxlJob("scanBusinessEnter")
    public void execute() {
        log.info("检测商家是否签约成功和微信实名成功=====>开始");
        businessEnterApplyApi.scanBusinessEnter();
        log.info("检测商家是否签约成功和微信实名成功=====>结束");
    }

}
